package com.jsbs.iam.common.core.mapper;

import com.jsbs.iam.common.core.entity.LogWeb;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;

/**
 * web端记录日志iam_log_web
 */
@Mapper
@Repository
public interface LogWebMapper {

    /**
     * 插入一条数据返回主键
     * @param entity
     * @return
     */
    long insertLogWeb(LogWeb entity);

    /**
     * 更新
     * @param id
     * @param rspContent
     * @param rspTime
     * @return
     */
    int updateLogWeb(@Param("id") Long id, @Param("rspContent") String rspContent, @Param("rspTime")LocalDateTime rspTime);
}
